package com.bw.service.system;
import com.bw.entity.PageResult;
import com.bw.pojo.system.Admin;
import com.bw.pojo.system.AdminPassword;
import com.bw.pojo.system.Admins;

import java.util.*;

/**
 * admin业务逻辑层
 */
public interface AdminService {


    public List<Admin> findAll();


    public PageResult<Admin> findPage(int page, int size);


    public List<Admin> findList(Map<String,Object> searchMap);


    public PageResult<Admin> findPage(Map<String,Object> searchMap,int page, int size);


    public Admin findById(Integer id);

    public AdminPassword findByName(String name);

    public void add(Admin admin);


    public void update(Admin admin);

    public void updatePassword(AdminPassword adminPassword);


    public void delete(Integer id);

    public Admins findAdminsById(Integer id);

    public void updateAdmins(Admins admins);
}
